import { HostConnConfType } from '../types'
import { HostConnConfTypeConst } from '../consts'
import { genHostConnConfDefaultIcon } from './gen-host-conn-conf-default-icon'

/**
 * 生成一个各连接配置项为空的服务器连接配置对象
 *
 * @returns {HostConnConfType} 服务器连接配置对象
 */
export const genHostConnConf = (): HostConnConfType => {
  return {
    type: HostConnConfTypeConst.HOST,
    parent: '',
    name: '',
    host: '',
    port: 22,
    username: '',
    password: '',
    priority: 0,
    icon: genHostConnConfDefaultIcon(),
    color: '#409EFF',
    remark: ''
  }
}
